<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');?>
<SCRIPT LANGUAGE="JavaScript">
	if(window.top.$("#current_pos").data('clicknum')==1 || window.top.$("#current_pos").data('clicknum')==null) {
	parent.document.getElementById('display_center_id').style.display='';
	parent.document.getElementById('center_frame').src = '?m=category&c=category&a=public_categorys&menuid=<?php echo $_GET['menuid'];?>&pc_hash=<?php echo $_SESSION['pc_hash'];?>';
	window.top.$("#current_pos").data('clicknum',0);
}
</SCRIPT>

<div class="subnav">
    <div class="content-menu ib-a blue line-x">
    <?php 
	
	$html.='<a href="javascript:;" class="on"><em>'.$modename.'l栏目管理'.'</em></a><span>|</span>';
	
	$html.='<a href="index.php?m=category&c=category&a=add&modelid='. $modelid .'&pc_hash='. $_SESSION['pc_hash'].'"><em>添加栏目'.'</em></a><span>|</span>';
	
	$html.='<a href="index.php?m=category&c=category&a=public_cache&modelid='. $modelid .'&pc_hash='. $_SESSION['pc_hash'].'"><em>'.'更新栏目缓存'.'</em></a><span>|</span>';
	
	$html.='<a href="index.php?m=category&c=category&a=export&modelid='. $modelid .'&pc_hash='. $_SESSION['pc_hash'].'"><em>'.'导出栏目</em></a>';
	
	echo $html;
	?>
	</div>
</div>


<style type="text/css">
	html{_overflow-y:scroll}
</style>
<form name="myform" action="?m=category&c=category&a=listorder&modelid=<?php echo $modelid?>" method="post">
<div class="pad_10">


<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
            <th width="50"><?php echo L('listorder');?></th>
            <th width="80">catid</th>
            <th >分类名称</th>
            <th align='center' width="40">数据量</th>
            <th align='center' width="60">访问</th>
			<th width="240">管理操作</th>
            </tr>
        </thead>
    <tbody>
    <?php echo $categorys;?>
    </tbody>
    </table>

    <div class="btn">
	<input type="hidden" name="pc_hash" value="<?php echo $_SESSION['pc_hash'];?>" />
	<input type="submit" class="button" name="dosubmit" value="<?php echo L('listorder')?>" /></div>  </div>
</div>
</div>
</form>
<script language="JavaScript">
<!--
function add_sub(id, title) {
	window.top.art.dialog({id:'add'}).close();
	window.top.art.dialog({title:title, id:'add', iframe:'?m=category&c=category&a=add&parentid='+id+'&menuid=<?php echo $_GET['menuid']?>&modelid=<?php echo $modelid?>&pc_hash=<?php echo $_SESSION['pc_hash']?>' ,width:'700px',height:'500px'}, function(){var d = window.top.art.dialog({id:'add'}).data.iframe;
	var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'add'}).close()});
}
function add(id, title) {
	window.top.art.dialog({id:'add'}).close();
	window.top.art.dialog({title:title, id:'add', iframe:'?m=category&c=category&a=add&modelid='+id+'&menuid=<?php echo $_GET['menuid']?>&pc_hash=<?php echo $_SESSION['pc_hash']?>' ,width:'700px',height:'500px'}, function(){var d = window.top.art.dialog({id:'add'}).data.iframe;
	var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'add'}).close()});
}
function edit(id, title) {
	window.top.art.dialog({id:'edit'}).close();
	window.top.art.dialog({title:title, id:'edit', iframe:'?m=category&c=category&a=edit&catid='+id+'&menuid=<?php echo $_GET['menuid']?>&modelid=<?php echo $modelid?>&pc_hash=<?php echo $_SESSION['pc_hash']?>' ,width:'700px',height:'500px'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;
	var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
}
function cexport(id, title) {
	window.top.art.dialog({id:'export'}).close();
	window.top.art.dialog({title:title, id:'export', iframe:'?m=category&c=category&a=export&modelid='+id+'&menuid=<?php echo $_GET['menuid']?>&pc_hash=<?php echo $_SESSION['pc_hash']?>' ,width:'400px',height:'300px'});
}
//-->
</script>
</body>
</html>
